package main.java.com.cinema.model;

import java.io.Serializable;

public class SalesData implements Serializable {
    private static final long serialVersionUID = 1L;

    private int totalSoldTickets;
    private double totalSalesAmount;
    private int totalRefundedTickets;
    private double totalRefundAmount;

    public SalesData(int totalSoldTickets, double totalSalesAmount,
                     int totalRefundedTickets, double totalRefundAmount) {
        this.totalSoldTickets = totalSoldTickets;
        this.totalSalesAmount = totalSalesAmount;
        this.totalRefundedTickets = totalRefundedTickets;
        this.totalRefundAmount = totalRefundAmount;
    }

    // Getters
    public int getTotalSoldTickets() { return totalSoldTickets; }
    public double getTotalSalesAmount() { return totalSalesAmount; }
    public int getTotalRefundedTickets() { return totalRefundedTickets; }
    public double getTotalRefundAmount() { return totalRefundAmount; }
    public double getNetAmount() { return totalSalesAmount - totalRefundAmount; }
}
